package com.example.utils.util.SM2;

import org.bouncycastle.math.ec.ECPoint;

import java.math.BigInteger;


/**
 *  TODO 获取公钥和私钥
 * @author 江
 * @date 2021/9/16 下午 17:31
 */
public class SM2KeyPair {
    /** 公钥 */
    private  ECPoint publicKey;

    /** 私钥 */
    private BigInteger privateKey;

    SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }

    public ECPoint getPublicKey() {
        return publicKey;
    }

    public BigInteger getPrivateKey() {
        return privateKey;
    }

}
